/* Copyright (c) 2006, 2009, Carl Burch. License information is located in the
 * com.cburch.logisim.Main source code and at www.cburch.com/logisim/. */
 
package com.cburch.logisim.util;

import java.awt.Font;

public class FontUtil {
    public static String toStyleStandardString(int style) {
        switch(style) {
        case Font.PLAIN:
            return "plain";
        case Font.ITALIC:
            return "italic";
        case Font.BOLD:
            return "bold";
        case Font.BOLD | Font.ITALIC:
            return "bolditalic";
        default:
            return "??";
        }
    }

    public static String toStyleDisplayString(int style) {
        switch(style) {
        case Font.PLAIN:
            return Strings.get("fontPlainStyle", Strings.utilSource);
        case Font.ITALIC:
            return Strings.get("fontItalicStyle", Strings.utilSource);
        case Font.BOLD:
            return Strings.get("fontBoldStyle", Strings.utilSource);
        case Font.BOLD | Font.ITALIC:
            return Strings.get("fontBoldItalicStyle", Strings.utilSource);
        default:
            return "??";
        }
    }

}
